<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="{$tplLanguage}">
<head>
  <title>StarraidNG webMangaer</title>
  <link rel="stylesheet" href="include/stylesheet.css" type="text/css"/>
</head>

<body bgcolor="#e3e9f4" link="#000000" vlink="#C0C0C0" alink="#C0C0C0" style="margin: 0">

{$menue}


{if $message eq "SAVED"}
<table width="300" border="1">
  <tr>
    <td bgcolor="#55c05f" align="center">Saved successfully</td>
  </tr>
</table>
{/if}

{if $message eq "DELETE"}
<table border="1">
  <tr>
    <td bgcolor="#f95858" align="center">Are you sure you want to delete this object?</td>
  </tr>
</table>
{/if}


{if $id eq ""}
<table border=0 cellpadding="2" cellspacing="3" bgcolor="#eeeeee">
  <tr bgcolor="#bbbbbb">
    <td bgcolor="#66bb66">Account</td>
    <td bgcolor="#66bb66">Character</td>
    <td>ID</td>
    <td>Name</td>
    <td>x</td>
    <td>y</td>
    <td>type</td>
    <td>status</td>
  </tr>
{section name=mysec loop=$Content}
  <tr>
    <td bgcolor="#c5eec5">{$Content[mysec].account}</td>
    <td bgcolor="#c5eec5">{$Content[mysec].character}</td>
    <td>{$Content[mysec].id}</td>
    <td>{$Content[mysec].name}</td>
    <td>{$Content[mysec].x}</td>
    <td>{$Content[mysec].y}</td>
    <td>{$Content[mysec].type}</td>
    <td>{$Content[mysec].status}</td>
    <td><a href="objects.php?id={$Content[mysec].id}&show=edit"><img src="include/images/edit.png" border="0"></a></td>
    <td><a href="objects.php?id={$Content[mysec].id}&show=delete"><img src="include/images/drop.png" border="0"></a></td>
  </tr>
{/section}
</table>
{/if}

<br />

<form action="objects.php" method="get">
<input type="hidden" name="show" value="{$show}">
<input type="hidden" name="id" value="{$id}">
<table border=0 cellpadding="2" cellspacing="3" bgcolor="#eeeeee">
  <tr bgcolor="#bbbbbb">
    <td colspan="2">
      {if $show eq "add"}Add a new{/if}
      {if $show eq "edit"}Edit{/if}
      {if $show eq "delete"}Delete{/if}
       account
    </td>
  </tr>
  <tr>
    <td>Owner:</td>
    <td>{html_options name=objectCharacter options=$ContentSelectCharacter[0].options selected=$ContentSelectCharacter[0].selected }</td>
  </tr>
  <tr>
    <td>Name:</td>
    <td><input type="text" name="objectName" value="{if $id neq ""}{$Content[0].name}{/if}"></td>
  </tr>
  <tr>
    <td>X:</td>
    <td><input type="text" name="objectX" value="{if $id neq ""}{$Content[0].x}{/if}"></td>
  </tr>
  <tr>
    <td>Y:</td>
    <td><input type="text" name="objectY" value="{if $id neq ""}{$Content[0].y}{/if}"></td>
  </tr>
  <tr>
    <td>Type:</td>
    <td>{html_options name=objectType options=$ContentSelectTypes[0].options selected=$ContentSelectTypes[0].selected }</td>
  </tr>
  <tr>
    <td>Status:</td>
    <td>{html_options name=objectStatus options=$ContentSelectStatus[0].options selected=$ContentSelectStatus[0].selected }</td>
  </tr>
  <tr>
    <td colspan="2" align="right">
      {if $show eq "add"}<input type="submit" name="action" value="add">{/if}
      {if $show eq "edit"}<input type="submit" name="action" value="save"><input type="submit" name="action" value="back">{/if}
      {if $show eq "delete"}<input type="submit" name="action" value="delete"><input type="submit" name="action" value="back">{/if}
    </td>
  </tr>
</table>
</form>

</body>
</html>

